#include "client.hpp"
#include <memory>
using namespace Client;
static void Usage(std::string proc)
{
    std::cout << "\nUsage:\n\t" << " server_ip server_port\n\n";
}
int main(int argc, char *argv[])
{
    if (argc != 3)
    {
        Usage(argv[0]);
        exit(1);
    }
    std::string serverip = argv[1];
    uint16_t serverport = atoi(argv[2]);
    std::unique_ptr<CalClient> cli(new CalClient(serverip, serverport));
    cli->initClient();
    cli->start();
    return 0;
}